package com.example.springbootblog.common.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

/**
 * 请求添加博客参数对象模具
 */
@Slf4j
@Data
public class AddBlogParam {
    @NotNull(message = "userId 不能为空")
    private Integer userId;
    @NotBlank(message = "title 不能为空")
    private String title;
    @NotBlank(message = "content 不能为空")
    private String content ;

}
